package com.cgy.utils.jmx.jvm.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author CHTK
 */
public class DateUtils {

    private static final SimpleDateFormat FORMATTER2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    /**
     *
     * @param time
     * @return
     */
    public static String formatTime(long time) {
        return FORMATTER2.format(new Date(time));
    }
}
